home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
daolibb
/
autobase.h
next >
Wrap
C/C++ Source or Header
|
1999-04-08
|
2KB
|
47 lines
#if !defined(__AUTOBASE_H)
#define __AUTOBASE_H
#ifndef _USRDLL
class Currency { //Wrapper for CURRENCY
__int64 int64;
public:
Currency() {int64 = 0;}
Currency(double);
Currency(__int64 i) {int64 = i;}
Currency(char*);
Currency(CURRENCY cy) {int64 = cy.int64;}
Currency(Currency const & c) {int64 = c.int64;}
__int64 i64() const {return int64;}
__int64 operator!() {return !int64;}
operator void*() {return (void*)int64;}
operator CURRENCY() {CURRENCY cy; cy.int64 = int64; return cy;}
Currency& operator+=(Currency const &);
Currency& operator-=(Currency const &);
Currency& operator*=(Currency const &);
Currency& operator/=(Currency const &);
Currency& operator=(Currency const &);
Currency& operator-();
friend Currency operator+(Currency const &, Currency const &);
friend Currency operator+(Currency const &, double const &);
friend Currency operator+(double const &, Currency const &);
friend Currency operator-(Currency const &, Currency const &);
friend Currency operator-(Currency const &, double const &);
friend Currency operator-(double const &, Currency const &);
friend Currency operator*(Currency const &, Currency const &);
friend Currency operator*(Currency const &, double const &);
friend Currency operator*(double const &, Currency const &);
friend Currency operator/(Currency const &, Currency const &);
friend Currency operator/(Currency const &, double const &);
friend Currency operator/(double const &, Currency const &);
friend operator==(Currency const &,Currency const &);
friend operator!=(Currency const &,Currency const &);
friend operator<(Currency const &,Currency const &);
friend operator<=(Currency const &,Currency const &);
friend operator>(Currency const &,Currency const &);
friend operator>=(Currency const &,Currency const &);
};
#endif //_USRDLL
#endif